Api.GetVariables 方法
取得使用者定義變數的清單。
命名空間:IntervalZero.KINGSTAR.Local.Api
組合: IntervalZero.KINGSTAR.Local.Api (於 IntervalZero.KINGSTAR.Local.dll) 版本:4.4.0.0
語法
public KsReturn<UserVariable[]> GetVariables(
UserVariable Parent = null
)
Public Function GetVariables(
Parent = null As UserVariable
) As KsReturn(Of UserVariable())
參數
Parent
型別:UserVariable
預設值:null
UserVariable 的父資料夾,預設會從根資料夾取得變數。
回傳值
型別:KsReturn<UserVariable[]>
回傳一個 KsError 代碼及一個 UserVariable 值。
備註
此變數可用於 KINGSTAR 示波器 及即時記錄檔。
可用的 EtherCAT 狀態
ecatOffline, ecatInit, ecatBoot, ecatPreOP, ecatSafeOP, ecatOP
範例
N/A
參見